package com.d1711.zhanggm.springboot.mapper;

import com.d1711.zhanggm.springboot.entity.SudentHobbyRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 学生爱好关系表 Mapper 接口
 * </p>
 *
 * @author 张国明
 * @since 2020-05-27
 */
public interface SudentHobbyRelationMapper extends BaseMapper<SudentHobbyRelation> {
    @Select("select hobby_id from t_sudent_hobby_relation where student_id=#{stuId}")
    List<Integer> selectHobbyIdListByStuId(@Param("stuId") Integer stuId);
}
